package com.example.demo.pojo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("components")
@ApiModel(description = "零件实体")
public class Component {
    @TableId(type = IdType.AUTO)
    private Integer componentId;
    private String componentName;
    private Double price;
    private String description;
    private Integer category;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
